package test.test3;


import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class JdkProex implements InvocationHandler {
    Object computer;
    public JdkProex(Object computer) {
        this.computer = computer;
    }
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("调用前");
        Object obj = method.invoke(computer, args);
        return obj;
    }
}
